
# -*- coding=UTF-8 -*-
# @ File: zy-09.py
# @ Time: 2018/2/5 12:04

#    删除a_list中所有的2

a_list = [1,2,3,2,2]
kk = a_list[:]
for mm in kk:
    if mm==2:
        a_list.remove(mm)
print(a_list)

#a_list.remove(2)
#a_list.remove(2)
#a_list.remove(2)
#print(a_list)




code = compile("open('mycode.py','w',encoding='utf-8').write('我是韩小样')",'mydode.py','exec')
eval(code)





import random
num = random.randint(0,99)
for i in range(1,6):
    num1 = int(input("输入0-20的数字:"))
    if num1 > num:
        print("猜大了")
    elif num1 < num:
        print("猜小了")
    else:
        print("中奖了")
        break
print("结束")